<!doctype html>
<html>
<head>
	<title>首页</title>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<meta name="format-detection" content="telephone=no"/> <!--禁止数字串在ok手机中被识别成电话号码-->
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<!-- ICO -->
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css2/main.css" media="all" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css2/style.css" media="all" />
	<!-- iconfont图形样式 -->
	<link rel="stylesheet" href="__PUBLIC__/css2/iconfont/iconfont.css" type="text/css">
</head>
<!-- <body onload="checkCookie()"> -->
<!--header页头文件-->


<div class="main me">
	<div class="me_top"> 
		<dl>
			<dt><img src="{$userInfo.photo_id}"></dt>
			<dd>
				<b>{$userInfo.username}</b>
				<label> </label>
				<span>ID:{$userInfo.id}</span>
			</dd>
		</dl>
	</div>
	<div class="me_li me_bank">
		<!-- <h2><a href="{:U('Scan/task')}">扫描任务<label><i class="iconfont">&#xe620;</i>{$list.tilte}</label><i class="right iconfont">&#xe604;</i></a></h2> -->
		<ul>
			<li>
				<a href="javascript::" id="scanQRCode">
					<i class="green iconfont">&#xe60a;</i>
					<label><b>扫一扫</b>扫一扫设备二维码</label>
				</a>
			</li>
			<li>
				<a href="{:U('Aboutme/index')}">
					<i class="green iconfont">&#xe607;</i>
					<label><b>我的信息</b>我的信息</label>
				</a>
			</li>
			<li>
				<a href="{:U('Scan/index')}">
					<i class="blue iconfont">&#xe611;</i>
					<label><b>扫描记录</b>扫描记录</label>
				</a>
			</li>

			<li>
				<a href="{:U('Aboutme/upinfo')}">
					<i class="blue iconfont">&#xe60c;</i>
					<label><b>修改密码</b>修改个人密码</label>
				</a>
			</li>
		</ul>
	</div>
	<div class="me_li me_all">
		<ul>
			<li>
				<a href="{:U('Light/scan_log')}">
					<i class="blue iconfont">&#xe60b;</i>
					<label><b>GL捕飞虫灯</b>捕飞虫灯扫描记录</label>
				</a>
			</li>
			<li>
				<a href="{:U('Glue/scan_log')}">
					<i class="red iconfont">&#xe614;</i>
					<label><b>RG鼠板监视点</b>粘鼠板扫描记录</label>
				</a>
			</li>
			<li>
				<a href="{:U('Bait/scan_log')}">
					<i class="red iconfont">&#xe612;</i>
					<label><b>RB鼠饵监视点</b>鼠食盒扫描记录</label>
				</a>
			</li>
			<li>
				<a href="{:U('Mousetrap/scan_log')}">
					<i class="blue iconfont">&#xe613;</i>
					<label><b>RC机械捕鼠器</b>机械捕鼠夹扫描记录</label>
				</a>
			</li>
			<li>
				<a href="{:U('Reptile/scan_log')}">
					<i class="blue iconfont">&#xe613;</i>
					<label><b>CI爬虫监视点</b>爬虫板扫描记录</label>
				</a>
			</li>
		</ul>
	</div>
</div>
<!--footer底部文件-->
</body>
<script src="__PUBLIC__/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/jquery.cookie.min.js" type="text/javascript"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	 
<script type="text/javascript">
//	function setCookie(c_name,value,expiredays){
//		var exdate=new Date();
//		exdate.setDate(exdate.getDate()+expiredays);
//		document.cookie = c_name + "=" +escape(value)/* + 
//		((expiredays == null) ? ""  : ";expires=" + exdate.toGMTString)*/;
//	}
/*	function getCookie(c_name){
		if (document.cookie.length>0) {
			c_start = document.cookie.indexOf(c_name + "=")
			if(c_start != -1){
				c_start = c_start + c_name.lehgth+1
				c_end = document.cookie.indexOf(";",c_start)
				if (c_end == -1) c_end=document.cookie.length;
				return unescape(document.cookie.substring(c_start,c_end))
			}
		}
		return ""
	}
	function checkCookie(){
		username = getCookie('username');
		if (username != null && username != "") {
			alert('Welcome again ' + username +'!');
		}else{
			username = prompt('please enter your name:',"")
			if (username != null && username != "") {
				setCookie('username',username,3)
			}
		}
	}*/
</script>

<script  type="text/javascript">  
  	
  	wx.config({
	  	debug: false,
	  	appId:'{$data.appId}',
	  	timestamp: {$data.timestamp},
	  	nonceStr: '{$data.nonceStr}',
	  	signature: '{$data.signature}',
	  	jsApiList : [ 'checkJsApi', 'scanQRCode' ]  
	});
    wx.error(function(res) {  
        alert("出错了：" + res.errMsg);  
    });  
  
    wx.ready(function() {  
        wx.checkJsApi({  
            jsApiList : ['scanQRCode'],  
            success : function(res) {  
            }  
        });  
  
        //扫描二维码  
        document.querySelector('#scanQRCode').onclick = function() {
            wx.scanQRCode({  
                needResult : 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，  
                scanType : [ "qrCode", "barCode" ], // 可以指定扫二维码还是一维码，默认二者都有  
                success : function(res) {
                	self.location=res.resultStr;
                }  
            });  
        };//end_document_scanQRCode  
          
    });//end_ready  
</script>  
</html>

